<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="crm.util.ParamUtil"%>
<%@page import="crm.model.Employees"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<link rel="stylesheet" href="../../../resources/css/reset.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="../../../resources/css/inner.css" type="text/css" media="screen" />
		<style type='text/css'>
		 a{font-size:12px; text-decoration:none; color:#70B300;}
		</style>
		<meta http-equiv="content-type" content="text/html; charset=utf-8">
		<link rel="stylesheet" type="text/css" href="../../../resources/css/jquery-check.css" />
		<script type="text/javascript" src="../../../resources/js/jquery-1.2.6.js"></script>
		<script type="text/javascript" src="../../../resources/js/jquery-check.js"></script>
		<script type="text/javascript" src="../../../resources/js/WebCalendar.js"></script>
		<title>purchase_add</title>
	</head>
	<body>
		<%
			request.setCharacterEncoding("UTF-8");
			int recepit_id = ParamUtil.getInt(request, "id", 0);
			// System.out.println(recepit_id);
			Employees cu = (Employees) session.getAttribute("user");
			// System.out.println(cu.getName());
		%>

		<form id="formId"
			action="purchase_add_do.jsp?recepit_id=<%=recepit_id%>"
			method="post">
			<table>
				<tr>
					<td>
						物品名称
					</td>
					<td>
						<input type="text" name="goods_name" jType="en_dig_chi" />
					</td>
				</tr>
				<tr>
					<td>
						购买时间
					</td>
					<td>
						<input type="text" name="time" maxlength="20"
							onClick="SelectDate(this,'yyyy-MM-dd')" readonly
							style="width: 150px; cursor: pointer" jType="date" />
					</td>
				</tr>
				<tr>
					<td>
						单价
					</td>
					<td>
						<input type="text" name="single_price" jType="float_number" />
					</td>
				</tr>
				<tr>
					<td>
						物品数量
					</td>
					<td>
						<input type="text" name="goods_num" jType="int_number" />
					</td>
				</tr>
				<tr>
					<td>
						总支出
					</td>
					<td>
						<input type="text" name="sum_fee" jType="float_number" />
					</td>
				</tr>
				<tr>
					<td>
						购买地
					</td>
					<td>
						<input type="text" name="place" jType="en_dig_chi" />
					</td>
				</tr>
				<tr>
					<td>
						购买者
					</td>
					<td>
						<input type="text" name="person" value="<%=cu.getName()%>"
							readonly jType="china" />
					</td>
				</tr>
				<tr>
					<td>
						卖方
					</td>
					<td>
						<input type="text" name="seller" jType="china" />
					</td>
				</tr>
				<tr>
					<td>
						卖方联系方式
					</td>
					<td>
						<input type="text" name="seller_contact" jType="phone" />
					</td>
				</tr>
				<tr>
					<td style='text-align:center;' colspan="2">
						<input type="submit" class='button' value='确定'/>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>